let date = new Date(2012, 0, 3) // 3 Jan 2012
console.log(getLocalDay(date))

function getLocalDay(date) {
	// 从创建的日期对象中获取是星期几
	let day = date.getDay()
	if (day == 0) day = 7
	return day
}
